<?php
$this->pageTitle='Востановления пароля';
$this->breadcrumbs=array(
	'Востановления пароля',
);
?>

<h1>Востановления пароля</h1>

<?php if(Yii::app()->user->hasFlash('forgot_error')): ?>

	<div class="errorMessage">
		<?php echo Yii::app()->user->getFlash('forgot_error'); ?>
	</div>

<?php else: ?>
	<?php if(Yii::app()->user->hasFlash('forgot')): ?>
	
		<div class="flash-success">
			<?php echo Yii::app()->user->getFlash('forgot'); ?>
		</div>
	
	<?php else: ?>
	<?php if(Yii::app()->user->hasFlash('forgot_messange')): ?>
	
		<div class="errorMessage">
			<?php echo Yii::app()->user->getFlash('forgot_messange'); ?>
		</div>
	
	<?php endif; ?>
	<div class="u_cat also">
		<?php $form=$this->beginWidget('CActiveForm', array(
			'id'=>'login-form',
			'enableAjaxValidation'=>true,
		)); ?>
			<table class="flds_form">
				<tbody>
					<tr>
						<td class="flds_form_l">
							<?php echo $form->labelEx($model,'email'); ?>
						</td>
						<td class="flds_form_r">
							<div class="flds_border">
								<div class="flds_border_inside">
									<?php echo $form->textField($model,'email', array('class'=>'settings_fld')); ?>
								</div>
								<?php echo $form->error($model,'email'); ?>
							</div>
						</td>
					</tr>
				</tbody>
			</table>
		
			<div class="row submit">
				<?php echo CHtml::submitButton('Отправить', array('class'=>'green_btn tac')); ?>
			</div>
		<?php $this->endWidget(); ?>
	</div>
	<?php endif; ?>
<?php endif; ?>